package com.hpli.infrastructure.persistent.po;

import java.util.Date;
import lombok.Data;

/**
 * Table: user_award_record_000
 */
@Data
public class UserAwardRecord {
    /**
     * Column: id
     * Type: INT UNSIGNED
     * Remark: 自增ID
     */
    private Integer id;

    /**
     * Column: user_id
     * Type: VARCHAR(32)
     * Remark: 用户ID
     */
    private String userId;

    /**
     * Column: activity_id
     * Type: BIGINT
     * Remark: 活动ID
     */
    private Long activityId;

    /**
     * Column: strategy_id
     * Type: BIGINT
     * Remark: 抽奖策略ID
     */
    private Long strategyId;

    /**
     * Column: order_id
     * Type: VARCHAR(12)
     * Remark: 抽奖订单ID【作为幂等使用】
     */
    private String orderId;

    /**
     * Column: award_id
     * Type: INT
     * Remark: 奖品ID
     */
    private Integer awardId;

    /**
     * Column: award_title
     * Type: VARCHAR(128)
     * Remark: 奖品标题（名称）
     */
    private String awardTitle;

    /**
     * Column: award_time
     * Type: DATETIME
     * Remark: 中奖时间
     */
    private Date awardTime;

    /**
     * Column: award_state
     * Type: VARCHAR(16)
     * Default value: create
     * Remark: 奖品状态；create-创建、completed-发奖完成
     */
    private String awardState;

    /**
     * Column: create_time
     * Type: DATETIME
     * Default value: CURRENT_TIMESTAMP
     * Remark: 创建时间
     */
    private Date createTime;

    /**
     * Column: update_time
     * Type: DATETIME
     * Default value: CURRENT_TIMESTAMP
     * Remark: 更新时间
     */
    private Date updateTime;
}